<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" 
	MasterPageFile="~/App_ThemeMasters/NoStyle/OneColumnLayout.Master" Inherits="Syrinx.Gui.AspNet.Nitobi2.NitobiBasePage" EnableEventValidation="false" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardHeaderPageContent.inc"-->
<!--#include file="../SiteControls/StandardFooterPageContent.inc"-->

<asp:Content ID="c0" runat="server" ContentPlaceHolderID="mainContent">
<swf:BizProc runat="server" ID="forums" FactoryName="Forums">
	<State pid='SupportForums' includeSelf="false" startDepth="1" endDepth="2"
	 EditModeSessionKey="ForumEdit" includeCounts="true" entireTree="true" listDetailLevel="basicDetails" />
</swf:BizProc>
<swf:BizProc runat="server" ID="membership" factoryName="eComSalesOrderItems">
	<ParentBizProc id="orderBP" fieldName="id" dataId="pid" />
	<State includeSelf="true" entireTree="false" listDetailLevel="basicDetails" baseListFieldNameforMaster="product" 
			mlpid="FreeForumUserMembership" />
</swf:BizProc>

<span class="button1"><snc:ActionButton runat="server" ID="_pst" Actions="forums.AddBizObj" Text="Post Reply" /></span>
<span class="button6"><snc:ActionButton runat="server" ID="_pst2" Actions="forums.UpdateBizObj" Text="Submit Changes" /></span>
<span class="button1"><snc:ActionButton runat="server" ID="_pst3" Actions="forums.CancelEdits" Text="Cancel" /></span>
<span class="button5"><snc:ActionButton runat="server" ID="_pst4" Actions="forums.DeleteBizObj" Text="Delete" ClientClick="if(!confirm('Are you sure you want to delete?'))return false;"/></span>
<span class="button1"><snc:ActionButton runat="server" ID="_pst5" Actions="forums.SetArticlePicture" Text="Set Image" ToolTip="Set primary media for this article" 
	PopupPage="../popups/SetArticleImagePopup.aspx" PopupHeight="535px" PopupWidth="800px" PopupTitle="Select a primary image for this article." /></span>
<span class="button4"><snc:ActionButton runat="server" ID="_pst6" Actions="forums.SwitchEdit" Text="Edit" SessionBoolSwitch="ForumEdit"  /></span>
<swf:ActionButton runat="server" ID="_sgnup" Actions="orderBP.UpdateBizObj,membership.AddOne(FreeForumUserMembership),checkout.StartWizard,checkout.MoveNext" Text="Sign up Now" />

<art:ArticleTranslationDisplay runat="server" ID="f2"
	ParentBizProcIds="forums" 
	TranslationTemplate="Articles.Gui.AspNet.ArticleTranslationRWDisplay"
	ReadOnlyTemplate=""
	EditableTemplate="Forums.Gui.AspNet.ForumGroupRWDisplay-Style1" >
	<macros imageRes="Thumbnail" />
</art:ArticleTranslationDisplay>


<div style="width:99%">
<snc:ComplexBizObjListDisplay ID="f1" runat="server" ParentBizProcIds="forums"
	ReadOnlyTemplate="Forums.Gui.AspNet.ForumGroupListDisplay-Style1">
	<macros imageRes="SmallThumbnail" 
	grpNavLink="javascript:if(document.getElementById('ctl00_mainContent_f2_baseTitle') != null)$_bizProcId$BizProc.triggerEvent('$_controlId$','bizObjSelected','$id$');"
	navLink="javascript:if(document.getElementById('ctl00_mainContent_f2_baseTitle') == null)window.location.href='$CmpSetting(sitePath)$/std/Forum.aspx?forumpid=$uniqueId$';else $_bizProcId$BizProc.triggerEvent('$_controlId$','bizObjSelected','$id$');" LayersClass="GrSqToWh" />
</snc:ComplexBizObjListDisplay>		
</div>
</asp:Content>

